import service from "@/axios/index.js"; //这是引入axios实例
/**
 * 登录
 */
// http://localhost:5173/springbootsiiny4vh/user/login?username=admin&password=admin
export function loginApi(username, password) {
  return service.post(`users/login?username=${username}&password=${password}`);
}
/**
 * 用户信息
 */
export const getUserInfo = () => {
  return service.get("users/session");
};
